Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Zelda Asaasterobu 7.Nov.03 08:47 AM a Web browser
Applications Development 6.0.1 CF1 Windows 2000


Hi,

I'm upgrading Notes Client from 5.0.8 to 6.0.1 CF1 for +70 000 users, in a first step they will keep a R5 mail file template. The mail file template will be upgraded programmaticaly under conditions in a second step.

The users archive settings in R5 is :
- Archive doc not modified after 30 days,
- Archive doc not accessed after 30 days,
- ArchivePath = "achive\a_[USER].nsf",
- ArchiveServer = "" (local),
- ArchiveLog = "Yes"
- ArchiveLogDbPaTh = "archive\l_[USER].nsf",
- etc ...

After upgrading only the Notes client to 6.01 CF1, the "Archive Profile" does not change until the user use the archive. (checked with NotesPeek).

I want to set the archive settings automaticaly for my users, in order to have just one private policy archive settings.
I can't do this using R6 Policies from my Domino server. I do this programmaticaly with a LotusScript launched on the PostOpen of the database scripts.
My script is launched the first time the user connects to his mail file with R6 client and before his first manual archive in R6.

My script is :
Function reInitArchPolicy( db As NotesDatabase ) As Integer

result = False

Dim archProfile As NotesDocument
Set archProfile = db.GetProfileDocument( "archive profile" )

If Not archProfile.IsNewNote Then

'R5 setings backup
archiveLog = archProfile.ArchiveLog(0)
archiveLogDbPath = archProfile.ArchiveLogDbPath(0)
archivePath = archProfile.ArchivePath(0)
modifiedLife = archProfile.ModifiedLife(0)
documentLife = archProfile.DocumentLife(0)
expiredLife = archProfile.ExpiredLife(0)
ignoreChildren = archProfile.IgnoreChildren(0)
includeDocLinks = archProfile.IncludeDocLinks(0)

'archive profile remove
Call archProfile.Remove( True )

'new archive profile in order to get 1 archive policy
Set archProfile = db.GetProfileDocument( "archive profile" )
archProfile.ArchiveExpired = ""
archProfile.ArchiveInactive = ""
archProfile.ArchiveLocation = ""
archProfile.ArchiveLog = archiveLog
archProfile.ArchiveLogDbPath = archiveLogDbPath
archProfile.ArchiveModified = "Yes"
archProfile.ArchivePath = archivePath
archProfile.ArchiveServer = ""
archProfile.ArchivingServer = ""
archProfile.DocumentLife = documentLife
archProfile.Enabled = "Yes"
archProfile.ExpiredLife = expiredLife
archProfile.IgnoreChildren = ignoreChildren
archProfile.IncludeDocLinks = includeDocLinks
archProfile.JustDelete = ""
archProfile.ModifiedLife = modifiedLife
archProfile.SaveOptions = ""
archProfile.ServerEnabled = ""
archProfile.SourceDBReplicaID = db.ReplicaID

Call archProfile.Sign() 'Cf techNote 1085503
Call archProfile.Save( True, False)

result = True

End If

reInitArchPolicy = result

End Function

After launching this script I double checked archive profile with NotesPeek all fields look good.
When I want to check my archive setting using "Archive \ Settings" actions I got the folowing error :
Error Reading Archiving Settings: Incorrect archive profile. The archive settings must be resaved to enable archiving.
Then I click "Ok", the archive setting popup appears and if I click "Ok", my archive profile is resaved and every things become fine, but if I click "Cancel", then I'll get then same error message every time I come back to my archive settings (till I resaved them).

Any idea??








  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS